package com.zbkj.crmeb.order.response;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class DaigoOrderResponse implements Serializable {

    private String error;
    private String message;
    private String status;
    private Order order;

    @Data
    public static class Order{
        //订单编号
        @JSONField(name ="order_sn")
        private String channelOrderSn;
        //订单ID
        @JSONField(name ="order_id")
        private String channelOrderId;
        //创建时间
        @JSONField(name ="add_time")
        private Long addTime;
        //渠道类型 1:buyer 2 欧洲
        @JSONField(name ="channel_type")
        private Integer channelType;
        //订单状态：1待付款，2待发货，3待收货，4已收货，5售后，6已取消
        @JSONField(name ="order_type")
        private Integer orderType;
        //发货状态：0未发货，1已发货，2确认售后，11部分发货
        @JSONField(name ="shipping_status")
        private Integer shippingStatus;
        //订单付款状态：0未付款，2已付款
        @JSONField(name ="pay_status")
        private Integer payStatus;
        //付款时间
        @JSONField(name ="pay_time")
        private Long payTime;
        //确认时间
        @JSONField(name ="confirm_time")
        private Long confirmTime;
        //收货人姓名
        @JSONField(name ="consignee")
        private String consignee;
        //收货人电话
        @JSONField(name ="mobile")
        private String mobile;
        //国家
        @JSONField(name ="region")
        private String region;
        //省
        @JSONField(name ="province")
        private String province;
        //市
        @JSONField(name ="city")
        private String city;
        //区
        @JSONField(name ="district")
        private String district;
        //详细地址
        @JSONField(name ="address")
        private String address;
        //发货人姓名
        @JSONField(name ="shipper_name")
        private String shipperName;
        //发货人电话
        @JSONField(name ="shipper_mobile")
        private String shipperMobile;
        //发货类型：1为快递，2为自提
        @JSONField(name ="shipping_type")
        private Integer shippingType;
        //店铺在BUYER绑定的会员ID
        @JSONField(name ="user_id")
        private String userId;
        //店铺编号：1016
        @JSONField(name ="shop_id")
        private String shopId;
        //订单商品金额
        @JSONField(name ="goods_amount")
        private BigDecimal goodsAmount;
        //运税费
        @JSONField(name ="shipping_fee")
        private BigDecimal shippingFee;
        //订单总金额
        @JSONField(name ="total_fee")
        private BigDecimal totalFee;
        //订单商户列表
        @JSONField(name ="goods_list")
        private List<Goods> goodsList;
    }
    @Data
    public static class Goods{
        //喜洋洋：spec_id
        @JSONField(name ="sku_id")
        private String skuId;
        //商品规格：颜色,尺码
        @JSONField(name ="goods_attr")
        private String goodsAttr;
        //运税费
        @JSONField(name ="shipping_fee")
        private BigDecimal shippingFee;
        //商品单价
        @JSONField(name ="goods_price")
        private BigDecimal goodsPrice;
        //商品数量
        @JSONField(name ="goods_number")
        private String goodsNumber;

    }


}
